package com.csc.finalproject.controller;

import java.io.IOException;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.servlet.ModelAndView;

@Controller
public class LinkNavigation {
	
	@RequestMapping(value="/", method=RequestMethod.GET)
	public ModelAndView homePage() {
		return new ModelAndView("login-form");
	}
	
	@RequestMapping(value="/index", method=RequestMethod.GET)
	public ModelAndView indexPage() {
		return new ModelAndView("home");
	}
	
	@RequestMapping(value="/sec/moderation", method=RequestMethod.GET)
	public ModelAndView moderatorPage() {
		return new ModelAndView("moderation");
	}
	
	@RequestMapping(value="/admin/first", method=RequestMethod.GET)
	public ModelAndView firstAdminPage() {
		System.out.println("HEE");
		return new ModelAndView("admin-first");
	}
	
	@RequestMapping(value="/admin/second", method=RequestMethod.GET)
	public ModelAndView secondAdminPage() {
		return new ModelAndView("admin-second");
	}
	////////////////////////////
	
	
	
	
	
	
	
	
	@RequestMapping(value = "/tableDetailAdmin", method = RequestMethod.GET)
	public String tableDetailAdmin() throws IOException {
		return "customer-list-admin";
	}
	@RequestMapping(value = "/tableStateAdmin", method = RequestMethod.GET)
	public String tableStateAdmin() throws IOException {
		return "manage-state-admin";
	}
	@RequestMapping(value = "/tableDetailSupport", method = RequestMethod.GET)
	public String tableDetailSupport() throws IOException {
		return "customer-list-support";
	}
	@RequestMapping(value = "/tableStateSupport", method = RequestMethod.GET)
	public String tableStateSupport() throws IOException {
		return "manage-state-support";
	}
	@RequestMapping(value = "/addAccount", method = RequestMethod.GET)
	public String addAccount() throws IOException {
		return "add-account";
	}

}
